#include<iostream>
using namespace std;
int main()
{
  int a,b,n,x;
  cin>>a>>b>>n;
  a%=b;
while(n--)  {
    a*=10;
    x=a/b;
    a%=b;
      }
  cout<<x;
}